package com.ucenter.server.org.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.system.handle.model.ResponseFrame;
import com.ucenter.server.org.pojo.PositionUser;

/**
 * position_user的Service
 * @author autoCode
 * @date 2018-12-01 09:50:14
 * @version V1.0.0
 */
@Component
public interface PositionUserService {
	
	/**
	 * 保存
	 * @param positionUser
	 * @return
	 */
	public ResponseFrame save(PositionUser positionUser);
	
	/**
	 * 根据positionId获取对象
	 * @param positionId
	 * @return
	 */
	public PositionUser get(String userId, String positionId);

	/**
	 * 分页获取对象
	 * @param positionUser
	 * @return
	 */
	public ResponseFrame pageQuery(PositionUser positionUser);
	
	/**
	 * 根据positionId删除对象
	 * @param userId
	 * @param positionId
	 * @return
	 */
	public ResponseFrame delete(String userId, String positionId);

	public List<PositionUser> findByUserId(String userId);

	public void deleteByUserId(String userId);
}